a = "王勇学习"

str1 = a.encode("utf-8")  # 编码
print(str1)

st3 = str1.decode("gbk")
print(st3)


# str2 = a.encode("gbk")
# print(str2)
#
# st4 = str2.decode("utf-8")
# print(st4)

'''
爬虫
 网页： utf-8  gbk gbk2312
 乱码
 open()
'''



